<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
 
<link href="${pageContext.request.contextPath }/css/toastr.min.css"
	rel="stylesheet" />
<!-- toastr -->
<script
	src="${pageContext.request.contextPath }/js/plugins/toastr/toastr.min.js"></script>
<script src="${pageContext.request.contextPath }/js/jquery-2.1.1.js"></script>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
    String left = (String) request.getAttribute("LEFT");
    System.out.println(left);
%>

<div class="sidebar-collapse">
	<ul class="nav metismenu" id="side-menu">
		<li class="nav-header" style="margin-top: -19px; height: 50px;">
			<div class="dropdown profile-element" style="margin-top: -10px;">
				<span> <img
					style="width: 16%; margin-top: -5px; margin-left: -10px;"
					alt="image" class="img-circle"
					src="${pageContext.request.contextPath}/img/webLogoIcon.png" />
				</span> <span style="color: white; font-weight: bold; font-size: 16px;">数据工厂</span>
			</div>
			<div class="logo-element">
				<img alt="image" class="img-circle"
					src="${pageContext.request.contextPath}/img/webLogoIcon.png" />
			</div>
		</li>
		<c:if test="${User.user_power == 1 }">

			
			<li <%="website_admin".equals(left) ? " class=\"active\"" : ""%>><a
				href="${pageContext.request.contextPath}/admin/website_admin"><i
					class="fa fa-filter"></i> <span class="nav-label">站点管理</span></a></li>
					

<%-- 			<li <%="weixin".equals(left) ? " class=\"active\"" : ""%>><a --%>
<%-- 				href="${pageContext.request.contextPath}/admin/weixin"><i --%>
<!-- 					class="fa fa-filter"></i> <span class="nav-label">微信</span></a></li> -->
<%-- 			<li <%="weibo".equals(left) ? " class=\"active\"" : ""%>><a --%>
<%-- 				href="${pageContext.request.contextPath}/admin/weibo"><i --%>
<!-- 					class="fa fa-gear"></i> <span class="nav-label">微博</span></a></li> -->
<%-- 			<li <%="gov".equals(left) ? " class=\"active\"" : ""%>><a --%>
<%-- 				href="${pageContext.request.contextPath}/admin/gov"><i --%>
<!-- 					class="fa fa-ban"></i> <span class="nav-label">政务</span></a></li> -->
<%-- 			<li <%="forum".equals(left) ? " class=\"active\"" : ""%>><a --%>
<%-- 				href="${pageContext.request.contextPath}/admin/forum"><i --%>
<!-- 					class="fa fa-ban"></i> <span class="nav-label">论坛</span></a></li> -->
<%-- 			<li <%="news".equals(left) ? " class=\"active\"" : ""%>><a --%>
<%-- 				href="${pageContext.request.contextPath}/admin/news"><i --%>
<!-- 					class="fa fa-ban"></i> <span class="nav-label">新闻</span></a></li> -->
<%-- 			<li <%="newspaper".equals(left) ? " class=\"active\"" : ""%>><a --%>
<%-- 				href="${pageContext.request.contextPath}/admin/newspaper"><i --%>
<!-- 					class="fa fa-search"></i> <span class="nav-label">报刊</span></a></li> -->
<%-- 			<li <%="client".equals(left) ? " class=\"active\"" : ""%>><a --%>
<%-- 				href="${pageContext.request.contextPath}/admin/client"><i --%>
<!-- 					class="fa fa-ban"></i> <span class="nav-label">客户端</span></a></li> -->
<%-- 			<li <%="website".equals(left) ? " class=\"active\"" : ""%>><a --%>
<%-- 				href="${pageContext.request.contextPath}/admin/website"><i --%>
<!-- 					class="fa fa-ban"></i> <span class="nav-label">网站</span></a></li> -->
<%-- 			<li <%="foreign_media".equals(left) ? " class=\"active\"" : ""%>><a --%>
<%-- 				href="${pageContext.request.contextPath}/admin/foreign_media"><i --%>
<!-- 					class="fa fa-ban"></i> <span class="nav-label">外媒</span></a></li> -->
<%-- 			<li <%="video".equals(left) ? " class=\"active\"" : ""%>><a --%>
<%-- 				href="${pageContext.request.contextPath}/admin/video"><i --%>
<!-- 					class="fa fa-ban"></i> <span class="nav-label">视频</span></a></li> -->
<%-- 			<li <%="blog".equals(left) ? " class=\"active\"" : ""%>><a --%>
<%-- 				href="${pageContext.request.contextPath}/admin/blog"><i --%>
<!-- 					class="fa fa-ban"></i> <span class="nav-label">博客</span></a></li>		 -->
<%-- 			<li <%="media".equals(left) ? " class=\"active\"" : ""%>><a --%>
<%-- 				href="${pageContext.request.contextPath}/admin/media"><i --%>
<!-- 					class="fa fa-ban"></i> <span class="nav-label">自媒体</span></a></li> -->
		</c:if>
	</ul>

</div>
<script>
    function noPermission() {
        toastr.error('暂无权限');
    }

    function moreMenuItems() {
        $('#moreMenuItems').css('display', '');
    }
/*     // 点击取消高亮
    $("#side-menu li").click(function () {
    	  $(this).siblings().removeClass("active");
    	  $(this).addClass("active");
	});
     */
   
//     $("#side-menu  li  ul  li").click(function () {
//       $("#side-menu  li  ul").removeClass("nav nav-second-level collapse");
//       $("#side-menu  li  ul").addClass("nav nav-second-level collapse in");
//   	  $(this).siblings().removeClass("active");
//   	  $(this).addClass("active");
// 	});
  
    
</script>